package com.powernode.utils;

import org.springframework.security.core.context.SecurityContextHolder;

/**
 * @author syo 2319615164@qq.com
 * @description 认证工具
 * @date 2024/3/31
 * @Copyright syo
 */
public class AuthUtil {

    public static String getLoginUserId() {
        return SecurityContextHolder.getContext().getAuthentication().getPrincipal().toString();
    }
}
